#include <stdio.h>
#include "dclcd.h"
#include "tskcfg.h"
#include "bsp.h"
#include "parameter.h"
#include <stdlib.h>

static void keyret(void);
static void ok(void);

const static GUI_FormKeysStru gui_calzeroready_keys = 
{
	.mute =   NULL,
	.power =  NULL,
  .keyt =   NULL,
  .set =    NULL,
  .home =   gui_form_common_home,
  .menu =   NULL,
  .keyret = keyret,
  .enter =  NULL,
	.down =   NULL,
	.up =     NULL,
	.left =   NULL,
	.right =  NULL,
	.ok =     ok,
	.volinc = NULL,
	.voldec = NULL,
	.key0 =   NULL,
	.key1 =   NULL,
	.key2 =   NULL,
	.key3 =   NULL,
	.key4 =   NULL,
	.key5 =   NULL,
	.key6 =   NULL,
	.key7 =   NULL,
	.key8 =   NULL,
	.key9 =   NULL,
};

const GUI_FormStru gui_from_calzeroready = 
{
	.load    = dc_load_calzeroready,
	.update  = NULL,
	.keys    = &gui_calzeroready_keys,
  .refresh = &gui_maxdelay_refresh_time,
};

static void keyret(void)
{
  gui_form_exec(&gui_from_calimenu, 0, 0);
}

static void ok(void)
{
	gui_form_exec(&gui_from_calzerorunning, 0, 0);
}
